package com.waterstudio.filedownloader.ext.m3u8.client;

import android.support.annotation.NonNull;

import java.io.IOException;
import java.io.InputStream;

/**
 * Created by chensuilun on 2019/3/23.
 */
public interface Client {

    void connect() throws Exception;

    InputStream getInputStream() throws IOException;

    long getSize() throws Exception;

    @NonNull
    String getUrl();

    boolean isConnected();


    void close();
}
